<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>范例</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="radius.constants.vendor-specific.html">« RADIUS Vendor Specific Attribute Types</a></li>
      <li style="float: right;"><a href="ref.radius.html">Radius 函数 »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="book.radius.html">Radius</a></li>
    <li>范例</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="radius.examples" class="chapter">
 <h1>范例</h1>

 
 <p class="para">
  Howto start?
  <ul class="itemizedlist">
   <li class="listitem"><span class="simpara">get a radius resource</span></li>
   <li class="listitem"><span class="simpara">configure the library</span></li>
   <li class="listitem"><span class="simpara">create the request</span></li>      
   <li class="listitem"><span class="simpara">put attributes</span></li>
   <li class="listitem"><span class="simpara">send the request</span></li>
   <li class="listitem"><span class="simpara">receive attributes</span></li> 
   <li class="listitem"><span class="simpara">close the radius resource (optional)</span></li>
  </ul>
  Take also a look at the examples in this package.
 </p>
 <p class="para">
  The package contains an example php script. This script demonstrates howto
  authenticate with radius using PAP or CHAP (md5). If you authenticate with 
  Microsoft Radius servers then its not possible to use CHAP (md5). If you
  would like to authenticate with Microsoft Servers you have to use
  MS-CHAPv1 or MS-CHAPv2, but its more complicated, because you need md4,
  sha1 and des to generate the right data. The enclosed examples demonstrate
  all authentication-methods, including MS-CHAPv1 and MS-CHAPv2. To get the
  MS-CHAP to work you need the <a href="ref.mcrypt.html" class="link">mcrypt</a> and
  the <a href="ref.mhash.html" class="link">mhash</a> extension, starting with
  version 1.2 of the package, the mcrypt extension is no longer needed.
 </p>
</div>
</div></div></body></html>